Creating custom selection scripts
| Command | Path | 
| Custom Selection | Tools | 
Custom selection scripts allow you to select or deselect objects in a file according to specified criteria. No scripting knowledge is necessary.
The layer options must be set to Show/Snap/Modify Others to select objects on another layer.
To create a custom selection script:
Select the command.
The Custom Selection dialog box opens. Select the desired options for the operation.
Click to show/hide the parameters.Click to show/hide the parameters.
| Parameter | Description | 
| Select | Selects objects matching the specified criteria without affecting the selection status of other objects | 
| Select Only | Selects objects matching the specified criteria and deselects all other objects | 
| Deselect | Deselects objects matching the specified criteria without affecting the selection status of other objects | 
| Execute Immediately | Performs the specified operation immediately upon exiting the dialog box; the operation criteria are not saved for future use | 
| Create VectorScript | Saves the criteria and command options as a VectorScript that can be reused, but does not run the script | 
| Create Python Script | Saves the criteria and command options as a Python script that can be reused, but does not run the script | 
Specify the criteria for the operation as described in The Criteria dialog box. Click OK.
If you selected one of the script options, you're prompted to select a palette for the script, and then to name the script containing the commands. The script then displays in the specified palette; double-click the script to perform the operation. See Creating and editing script palettes and scripts.
If you selected the Execute Immediately option, the objects are selected or deselected.
